using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SnsObjectOpDeleteComment : GeneratedMessageLite<SnsObjectOpDeleteComment, SnsObjectOpDeleteComment.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SnsObjectOpDeleteComment, SnsObjectOpDeleteComment.Builder>
		{
			private bool resultIsReadOnly;
			private SnsObjectOpDeleteComment result;
			protected override SnsObjectOpDeleteComment.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SnsObjectOpDeleteComment MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SnsObjectOpDeleteComment DefaultInstanceForType
			{
				get
				{
					return SnsObjectOpDeleteComment.DefaultInstance;
				}
			}
			public int CommentId
			{
				get
				{
					return this.result.CommentId;
				}
				set
				{
					this.SetCommentId(value);
				}
			}
			public Builder()
			{
				this.result = SnsObjectOpDeleteComment.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SnsObjectOpDeleteComment cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SnsObjectOpDeleteComment PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SnsObjectOpDeleteComment other = this.result;
					this.result = new SnsObjectOpDeleteComment();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SnsObjectOpDeleteComment.Builder Clear()
			{
				this.result = SnsObjectOpDeleteComment.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SnsObjectOpDeleteComment.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SnsObjectOpDeleteComment.Builder(this.result);
				}
				return new SnsObjectOpDeleteComment.Builder().MergeFrom(this.result);
			}
			public override SnsObjectOpDeleteComment BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SnsObjectOpDeleteComment.Builder MergeFrom(IMessageLite other)
			{
				if (other is SnsObjectOpDeleteComment)
				{
					return this.MergeFrom((SnsObjectOpDeleteComment)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SnsObjectOpDeleteComment.Builder MergeFrom(SnsObjectOpDeleteComment other)
			{
				return this;
			}
			public override SnsObjectOpDeleteComment.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SnsObjectOpDeleteComment.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SnsObjectOpDeleteComment._snsObjectOpDeleteCommentFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SnsObjectOpDeleteComment._snsObjectOpDeleteCommentFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 8u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						this.result.hasCommentId = input.ReadInt32(ref this.result.commentId_);
					}
				}
				return this;
			}
			public SnsObjectOpDeleteComment.Builder SetCommentId(int value)
			{
				this.PrepareBuilder();
				this.result.hasCommentId = true;
				this.result.commentId_ = value;
				return this;
			}
			public SnsObjectOpDeleteComment.Builder ClearCommentId()
			{
				this.PrepareBuilder();
				this.result.hasCommentId = false;
				this.result.commentId_ = 0;
				return this;
			}
		}
		public const int CommentIdFieldNumber = 1;
		private static readonly SnsObjectOpDeleteComment defaultInstance;
		private static readonly string[] _snsObjectOpDeleteCommentFieldNames;
		private static readonly uint[] _snsObjectOpDeleteCommentFieldTags;
		private bool hasCommentId;
		private int commentId_;
		private int memoizedSerializedSize = -1;
		public static SnsObjectOpDeleteComment DefaultInstance
		{
			get
			{
				return SnsObjectOpDeleteComment.defaultInstance;
			}
		}
		public override SnsObjectOpDeleteComment DefaultInstanceForType
		{
			get
			{
				return SnsObjectOpDeleteComment.DefaultInstance;
			}
		}
		protected override SnsObjectOpDeleteComment ThisMessage
		{
			get
			{
				return this;
			}
		}
		public int CommentId
		{
			get
			{
				return this.commentId_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasCommentId;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasCommentId)
				{
					num += CodedOutputStream.ComputeInt32Size(1, this.CommentId);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SnsObjectOpDeleteComment()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] snsObjectOpDeleteCommentFieldNames = SnsObjectOpDeleteComment._snsObjectOpDeleteCommentFieldNames;
			if (this.hasCommentId)
			{
				output.WriteInt32(1, snsObjectOpDeleteCommentFieldNames[0], this.CommentId);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasCommentId)
			{
				num ^= this.commentId_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			SnsObjectOpDeleteComment snsObjectOpDeleteComment = object_0 as SnsObjectOpDeleteComment;
			return snsObjectOpDeleteComment != null && (this.hasCommentId == snsObjectOpDeleteComment.hasCommentId && (!this.hasCommentId || this.commentId_.Equals(snsObjectOpDeleteComment.commentId_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SnsObjectOpDeleteComment, SnsObjectOpDeleteComment.Builder>.PrintField("CommentId", this.hasCommentId, this.commentId_, writer);
		}
		public static SnsObjectOpDeleteComment ParseFrom(byte[] data)
		{
			return SnsObjectOpDeleteComment.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SnsObjectOpDeleteComment MakeReadOnly()
		{
			return this;
		}
		public static SnsObjectOpDeleteComment.Builder CreateBuilder()
		{
			return new SnsObjectOpDeleteComment.Builder();
		}
		public override SnsObjectOpDeleteComment.Builder ToBuilder()
		{
			return SnsObjectOpDeleteComment.CreateBuilder(this);
		}
		public override SnsObjectOpDeleteComment.Builder CreateBuilderForType()
		{
			return new SnsObjectOpDeleteComment.Builder();
		}
		public static SnsObjectOpDeleteComment.Builder CreateBuilder(SnsObjectOpDeleteComment prototype)
		{
			return new SnsObjectOpDeleteComment.Builder(prototype);
		}
		static SnsObjectOpDeleteComment()
		{
			SnsObjectOpDeleteComment.defaultInstance = new SnsObjectOpDeleteComment().MakeReadOnly();
			SnsObjectOpDeleteComment._snsObjectOpDeleteCommentFieldNames = new string[]
			{
				"CommentId"
			};
			SnsObjectOpDeleteComment._snsObjectOpDeleteCommentFieldTags = new uint[]
			{
				8u
			};
			object.ReferenceEquals(micromsg.Proto.SnsObjectOpDeleteComment.Descriptor, null);
		}
	}
}
